package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.CallMode;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallRideCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.SimpleCallState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 一键叫车表
 * </p>
 *
 * @author Dell
 * @since 2021-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SimpleCall对象", description = "一键叫车表")
public class SimpleCall implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "一键叫车乘客表乘客Id")
    private Long customerId;

    @ApiModelProperty(value = "出发地坐标")
    private GeoPoint origin;

    @ApiModelProperty(value = "出发地名称")
    private String originName;

    @ApiModelProperty(value = "出发地详细名称")
    private String originPlaceName;

    @ApiModelProperty(value = "目的地名称")
    private String destinationName;

    @ApiModelProperty(value = "目的地详细名称")
    private String destinationPlaceName;

    @ApiModelProperty(value = "区域Id")
    private Long areaId;

    @ApiModelProperty(value = "叫车所属的区域Id")
    private Long callRegionId;

    @ApiModelProperty(value = "监管区域")
    private Long cantonId;

    @ApiModelProperty(value = "叫车类型 0:simple[一键叫车],1:phone[电召]")
    private SimpleCallRideCategory category;

    @ApiModelProperty(value = "叫车状态 0:nopick[叫车等待中];1:pick[司机已接单];2:cancelled[自主取消];3:covered[系统取消]")
    private SimpleCallState state;

    @ApiModelProperty(value = "电话叫车媒体信息表")
    private Long mediaId;

    @ApiModelProperty(value = "接驾时间戳")
    private Integer pickUpTimestamp;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;


    private Integer adminId;


    private Date scheduleTime;

    private CallMode callMode;

}
